package com.example.shiyun.UI;

import android.os.Bundle;
import android.view.WindowManager;

import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;

import com.example.shiyun.R;
import com.example.shiyun.Util.Util;

/**
 * app引导页
 */
public class Guide_Page extends AppCompatActivity {
    private PageFrameLayout contentFrameLayout;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_guide_page);
        //设置沉浸模式
        Util.Setimmersion(getWindow());
        ActionBar actionBar = getSupportActionBar();
        actionBar.hide();
        contentFrameLayout = (PageFrameLayout) findViewById(R.id.contentFrameLayout);
        // 设置资源文件和选中圆点
        contentFrameLayout.setUpViews(new int[]{
                R.layout.page_tab1,
                R.layout.page_tab2,
                R.layout.page_tab3
        }, R.mipmap.banner_on, R.mipmap.banner_off);
    }


}